package com.hongying.consumer;

import com.hongying.constant.RabbitMqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = RabbitMqConstant.GOOGLE_QUEUE)
@Slf4j
public class FanoutReceiver2 {

    @RabbitHandler
    public void process(String message){
        log.info("FanoutReceiver2: {}",message);
    }


}
